package com.zmj.mapper;

import com.zmj.entity.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMapper {
    int deleteByPrimaryKey(Long roleId);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(Long roleId);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);

    List<SysRole> findRoleAll(@Param("search") String search, @Param("order") String order);

    int del(List<Long> ids);

    List<SysRole>  findUserNotHasRole(long userId);
    int insertUserRole(@Param("userId") long userId, @Param("roleId") long roleId);
}